﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LDomino : WDomino
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String dominoTypeName;
        public String DominoTypeName
        {
            get
            {
                return dominoTypeName;
            }
            set
            {
                dominoTypeName = value;
                RaisePropertyChanged("DominoTypeName");
            }
        }

        private String dominoTypeSelected;
        public String DominoTypeSelected
        {
            get
            {
                return dominoTypeSelected;
            }

            set
            {
                dominoTypeSelected = value;
                RaisePropertyChanged("DominoTypeSelected");
            }
        }


        private ObservableCollection<String> dominoTypes = new ObservableCollection<String>();
        public ObservableCollection<String> DominoTypes
        {
            get
            {
                return dominoTypes;
            }

            set
            {
                dominoTypes = value;
                RaisePropertyChanged("DominoTypes");
            }
        }

        private String isSoldStatus;
        public String IsSoldStatus
        {
            get
            {
                return isSoldStatus;
            }

            set
            {
                isSoldStatus = value;
                RaisePropertyChanged("IsSoldStatus");
            }
        }

        private String soldStatusSelected;
        public String SoldStatusSelected
        {
            get
            {
                return soldStatusSelected;
            }

            set
            {
                soldStatusSelected = value;
                RaisePropertyChanged("SoldStatusSelected");
            }
        }


        private ObservableCollection<String> soldStatuses = new ObservableCollection<String>();
        public ObservableCollection<String> SoldStatuses
        {
            get
            {
                return soldStatuses;
            }

            set
            {
                soldStatuses = value;
                RaisePropertyChanged("SoldStatuses");
            }
        }

        public LDomino()
        {
            IsChoose = false;
            DominoUID = -1;
            DominoTypeUID = -1;
            DominoStockPrice = -1;
            DominoSellPrice = -1;
            IsSold = -1;
            DominoTypeSelected = DominoTypeName;
            SoldStatusSelected = IsSoldStatus;
        }
    }
}
